package com.lu.mapper;

import com.lu.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by LWC
 * Date 2021/7/28 21:49
 * Description
 */
//这个注解表示了这是一个mybatis的mapper类
@Mapper
@Repository
public interface TeacherMapper {

    List<Teacher> queryTeacherList();

    Teacher queryTeacherById(int id);

    void addTeacher(Teacher teacher);

    void updateTeacher(Teacher teacher);

    void deleteTeacher(int id);
}
